package cn.neusoft.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 安装lombok插件
 */

@Data   //生成get set
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Emp {

    private Integer empno;
    private String ename;
    private String job;
    private Integer mgr;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date hiredate;
    private Double sal;
    private String pic;
    private Double comm;
    private Integer deptno;

    private Dept dept;

}
